package org.example.api.user.serivce;

import org.example.api.user.request.UserPageQueryRequest;
import org.example.api.user.request.UserQueryRequest;
import org.example.api.user.request.UserRegisterRequest;
import org.example.api.user.response.UserOperatorResponse;
import org.example.api.user.response.UserQueryResponse;
import org.example.api.user.response.data.UserInfo;
import org.example.base.response.PageResponse;

/**
 * @author lly
 */
public interface UserFacadeService {

    /**
     * 查询用户信息
     * @param userQueryRequest
     * @return
     */
    UserQueryResponse<UserInfo> query(UserQueryRequest userQueryRequest);

    /**
     * 分页查询用户信息
     * @param userPageQueryRequest
     * @return
     */
    PageResponse<UserInfo> pageQuery(UserPageQueryRequest userPageQueryRequest);

    /**
     * 用户注册
     * @param userRegisterRequest
     * @return
     */
    UserOperatorResponse register(UserRegisterRequest userRegisterRequest);

}
